import type { InjectionKey } from "vue";
import type { SelectProps, OptionProps } from "../config";

export interface SelectContext{
	props:Required<SelectProps>;
	addField: (field: OptionContext) => void;
	removeField: (field: OptionContext) => void;
	optionChange:(field: OptionContext) => void;
}

export interface OptionContext {
	props:OptionProps
}

export const optionContextKey: InjectionKey<OptionContext> = Symbol(
	"EOptionContextKey"
);
export const selectContextKey: InjectionKey<SelectContext> =
	Symbol("ESelectContextKey");
